<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        /*层级选择器*/

        /*div p {
            color: red;
        }*/
/*
        .div1 p{
            color: red;
        }*/

        .div1 .p1{
            color: red;
        }
    </style>
</head>

<body>

    <div class="div1">
        <p class="p1">呵呵呵呵呵呵呵呵</p>

         <p>呵呵呵呵呵呵呵呵11111111111111</p>

    </div>

    <p>哈哈哈哈哈哈哈</p>


    <div>
        <p>嘿嘿嘿嘿嘿</p>


    </div>

</body>

</html>